package cn.com.demo.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "token")
public class TokenConfigProperties {
    /**token有效时间，单位：秒，默认30分钟*/
    private Integer expireTime = 1800;
    /**token 随机盐*/
    private String signKey="TEST";
    /**token 在header中的key值*/
    private String headName = "TOKEN";
}
